﻿@model Project.Models.Entity_Propiedades.Casas

@{
    ViewBag.Title = "Casa";
    Layout = "~/Views/Shared/_LayoutPublicaciones.cshtml";
}

<h2>Casa</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("AgregarCasa", "Propiedades", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Casas</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Dormitorios)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Dormitorios)
            @Html.ValidationMessageFor(model => model.Dormitorios)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Baños)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Baños)
            @Html.ValidationMessageFor(model => model.Baños)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CuartoServicio_)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CuartoServicio_)
            @Html.ValidationMessageFor(model => model.CuartoServicio_)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Parqueos)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Parqueos)
            @Html.ValidationMessageFor(model => model.Parqueos)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetrosConstruccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MetrosConstruccion)
            @Html.ValidationMessageFor(model => model.MetrosConstruccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetrosSolares)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MetrosSolares)
            @Html.ValidationMessageFor(model => model.MetrosSolares)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.propiedades.descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.propiedades.descripcion)
            @Html.ValidationMessageFor(model => model.propiedades.descripcion)
        </div>
        <p>
            <input type="submit" value="Continuar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
